<cfcomponent output="false">

    <cfscript>
    this.name = "EPAR";
    this.ApplicationTimeout = CreateTimeSpan( 0, 0, 1, 0 );
    this.sessionManagement = "Yes";
    </cfscript>


    <!--- Define the page request properties. Fires when the application is first created.--->
    
    <cffunction name="OnApplicationStart" access="public" returntype="boolean"  output="false" >
        <cfscript>
        
        APPLICATION.version = "1.0";
        return true;
        
        </cfscript>
    </cffunction>


    <cffunction name="OnApplicationEnd" access="public" returntype="void" output="false" >
        <cfargument name="ApplicationScope" type="struct" required="false" default="#StructNew()#" />

        <cfreturn />
    </cffunction>
    
    
    <cffunction name="OnSessionStart" access="public" returntype="void" output="false" >
        <cfscript>
            session.StaticPages = ListGetAt(CGI.PATH_INFO,1,"/") & "/static/";
            session.rootDir = ListGetAt(CGI.PATH_INFO,1,"/");
        </cfscript>
        
        
        <cfreturn />
    </cffunction>


    <cffunction name="OnRequestStart" access="public" returntype="boolean" output="false" >
        <cfargument name="targetPage" type="string" hint="The page requested" required="true"/>
        <cfreturn true>
    </cffunction>


    <cffunction name="OnRequest" access="public" returntype="void" output="true" >
        <cfargument name="TargetPage" type="string" required="true" />

        <cfinclude template="#ARGUMENTS.TargetPage#" />

        <cfreturn />
    </cffunction>


    <cffunction name="OnRequestEnd" access="public" returntype="void" output="true" >

        <cfreturn />
    </cffunction>


    <cffunction name="OnSessionEnd" access="public" returntype="void" output="false">
        <cfargument name="SessionScope" type="struct" required="true" />
        <cfargument name="ApplicationScope" type="struct" required="false" default="#StructNew()#" />


        <cfreturn />
    </cffunction>


<!---     <cffunction name="OnError" access="public" returntype="void" output="true">
        <cfargument name="Exception" type="any" required="true" />
        <cfargument name="EventName" type="string" required="false" default="" />

       <cfreturn />
    </cffunction> --->


</cfcomponent> 